package com.dongyimai.oauth;

import org.junit.jupiter.api.Test;

import java.util.Base64;

public class Base64Decode {

    @Test
    public void testDecodeBase64(){
        String str = "ZG9uZ3lpbWFpOmRvbmd5aW1haQ==";
        byte[] decode = Base64.getDecoder().decode(str);
        System.out.println(new String(decode));
        // Basic Base64.encode(客户端ID:秘钥)
    }
}
